//获取员工名字（前提是进入了公司）
function mpeople() {
	
	mui.ajax({
		url: 'http://113.71.26.27:8080/tpl/function/findemployee',
		async: true,
		type: 'post',
		timeout: 2000,
		data: {
			createBy: createBy
		},
		success: function(data) {
			document.getElementById("people").innerText = data.name;
		}
	});
	
}

//时间的格式转化
function mmtime(time) {
	var newDate = new Date(time);
	//console.log(newDate.getDate());
	var year = newDate.getFullYear();
	var month = (newDate.getMonth() + 1) < 10 ? "0" + (newDate.getMonth() + 1) : newDate.getMonth() + 1;
	var day = newDate.getDate() < 10 ? "0" + newDate.getDate() : newDate.getDate();
	var hours = newDate.getHours() < 10 ? "0" + newDate.getHours() : newDate.getHours();
	var minuts = newDate.getMinutes() < 10 ? "0" + newDate.getMinutes() : newDate.getMinutes();
	var seconds = newDate.getSeconds() < 10 ? "0" + newDate.getSeconds() : newDate.getSeconds();
	time = year + "-" + month + "-" + day + " " + hours + ":" + minuts + ":" + seconds;
	return time;
}